<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts ::header">

</head>
<body>
<nav th:replace="layouts ::navbar"></nav>
<div class="container">
   <h3>学生名录</h3>
    <hr>
    <a th:href="@{/students/new}"  class="btn btn-primary btn-sm mb-3">新增学生</a>
    <br>
    <table class="table table-bordered table-strpied">
        <thead class="thead-dark">
        <tr>
            <th>学生名字</th>
            <th>微信号</th>
            <th>邮箱</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="astudent :${students}">
            <td th:text="${astudent.name}"></td>
            <td th:text="${astudent.wechatId}"></td>
            <td th:text="${astudent.email}"></td>

        </tr>
        </tbody>
    </table>
</div>
</body>
</html>